<?php

/**
 * BaseProveedorconcepto
 * 
 * This class is member of the DAO layer.
 * 
 * @property integer $id
 * @property integer $idTipoProveedor
 * @property integer $idConcepto
 * @property Mconcepto $Mconcepto
 * @property Proveedortipo $Proveedortipo
 * 
 * @author     Claudio Corlatti <corlatti@gmail.com>
 *  $Id: BaseProveedorconcepto.php 12 2010-07-06 04:34:57Z corlatti $
 */
abstract class BaseProveedorconcepto extends Doctrine_Record {
    public function setTableDefinition()
    {
        $this->setTableName('proveedorconcepto');
        $this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'length' => 4, 'unsigned' => 1, 'primary' => true, 'autoincrement' => true));
        $this->hasColumn('idTipoProveedor', 'integer', 4, array('type' => 'integer', 'length' => 4, 'unsigned' => 1, 'notnull' => true));
        $this->hasColumn('idConcepto', 'integer', 4, array('type' => 'integer', 'length' => 4, 'unsigned' => 1, 'notnull' => true));
    }

    public function setUp()
    {
        $this->hasOne('Mconcepto', array('local' => 'idConcepto',
                                         'foreign' => 'id'));

        $this->hasOne('Proveedortipo', array('local' => 'idTipoProveedor',
                                             'foreign' => 'id'));
    }
}
?>